import api from "@/js/api.js";


export function getListFormByFormId(formId) {
    const params = new URLSearchParams();
    params.append('formId', formId);
    return api.post('/form/FormList', params);
}
export function getListForm() {
    const params = new URLSearchParams();
    return api.post('/form/FormAllList', params);
}
export function addForm(formId, formName, formNum,useDep,workDep,overseeDep) {
    const params = new URLSearchParams();
    params.append('form_id', formId);
    params.append('form_name', formName);
    params.append('form_num', formNum);
    params.append('use_dep', useDep);
    params.append('work_dep', workDep);
    params.append('oversee_dep', overseeDep);
    return api.post('/form/addForm', params);
}